import request from '@/utils/request'

// 查询竞店数据日报列表
export function selectCompetitorShopRank(query) {
  return request({
    url: '/marketing/BiCompetitiveProDwd/selectCompetitiveProRank',
    method: 'get',
    params: query
  })
}
// 查询竞店数据日报列表
export function selectCompetitorShopStatistics(query) {
  return request({
    url: '/marketing/BiCompetitiveProDwd/selectCompetitiveProStatistics',
    method: 'get',
    params: query
  })
}
// 查询竞店数据日报列表
export function comparisonStatisticsPro(query) {
  return request({
    url: '/marketing/BiCompetitiveProDwd/comparisonStatistics',
    method: 'get',
    params: query
  })
}
// 查询竞品数据日报列表
export function listBiCompetitiveProDwd(query) {
  return request({
    url: '/marketing/BiCompetitiveProDwd/list',
    method: 'get',
    params: query
  })
}

// 查询竞品数据日报详细
export function getBiCompetitiveProDwd(id) {
  return request({
    url: '/marketing/BiCompetitiveProDwd/' + id,
    method: 'get'
  })
}

// 新增竞品数据日报
export function addBiCompetitiveProDwd(data) {
  return request({
    url: '/marketing/BiCompetitiveProDwd',
    method: 'post',
    data: data
  })
}

// 修改竞品数据日报
export function updateBiCompetitiveProDwd(data) {
  return request({
    url: '/marketing/BiCompetitiveProDwd',
    method: 'put',
    data: data
  })
}

// 删除竞品数据日报
export function delBiCompetitiveProDwd(id) {
  return request({
    url: '/marketing/BiCompetitiveProDwd/' + id,
    method: 'delete'
  })
}
